/*
 * @Description: 
 * @Date: 2020-12-08 10:01:36
 * @LastEditors: lother
 * @LastEditTime: 2020-12-11 18:08:35
 * @FilePath: \AccounOpening-WEB\src\components\render\slots\el-radio-group.js
 */
import store from '@/store'
var langTail = store.state.settings.langTail;
export default {
  options(h, conf, key) {
    const list = []
    conf.options.forEach(item => {
      if (conf.optionType === 'button') {
        list.push(<el-radio-button label={item.value}>{item['title_'+langTail]}</el-radio-button>)
      } else {
        list.push(<el-radio label={item.value} border={conf.border}>{item['title_'+langTail]}</el-radio>)
      }
    })
    return list
  }
}
